package v1

import (
	models "gin-ebook/Models"
	"gin-ebook/pkg/e"
	"gin-ebook/pkg/util"
)

func GetMenu() (code int, data []models.Menu) {
	data = models.GetMenu()
	code = e.SUCCESS
	return
}

func GetMenuTree() (code int, data []models.Menu) {
	//获取全部菜单数据
	data = models.GetMenu()
	data = util.SetMenuTree(data)
	code = e.SUCCESS
	return
}
